﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dukou.Dao;
using Dukou.Security.Domain;

namespace Dukou.Security.Dao
{
    /// <summary>
    /// 用户数据访问接口
    /// </summary>
    public interface IUserDao : INHibernateDao<User, Int64>
    {
        /// <summary>
        /// 通过用户名获取用户
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        User FindByName(string name);

        /// <summary>
        /// 通过邮箱获取用户
        /// </summary>
        /// <param name="email"></param>
        /// <returns></returns>
        User FindByEmail(string email);
    }
}
